package im

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"go-websocket/internal/service"
	"go-websocket/utility"
)

type getCtl struct {

}


var Get = new(getCtl)



/**
by:axin
获取基础数据
 */
func (c *getCtl) Base (r *ghttp.Request) {

	userId, err := r.Session.Get("userId")

	if err != nil {
		r.Response.WriteExit(utility.JsonResult{
			Err: 1,
			Msg: err.Error(),
		})
	}
	


	service.User.Base(userId)



}